package com.weixin.common.sftp;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.LinkedHashMap;

/**
 * sftp client properties
 *
 * @author zh
 */
@ConfigurationProperties(value = "sftp")
public class ClientProperties {
    /**
     * 地址
     */
    private String host;
    /**
     * 端口号
     */
    private int port;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 多客户端配置
     */
    private LinkedHashMap<String, ClientProperties> hosts;


    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public LinkedHashMap<String, ClientProperties> getHosts() {
        return hosts;
    }

    public void setHosts(LinkedHashMap<String, ClientProperties> hosts) {
        this.hosts = hosts;
    }
}

